home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Modem / Annex Map / Annex-ITG next >
Text File  |  1993-10-18  |  1KB  |  86 lines

  1. ! From: werner@soe.berkeley.edu (John Werner)
  2. ! Newsgroups: comp.sys.mac.comm
  3. ! Subject: Re: SLIP on a Xylogics Annex
  4. ! Date: Sun, 17 Oct 1993 11:28:02 -0800
  5. ! [...stuff deleted...]
  6. !
  7. ! Here's the script that Larry Gouger <lgouger@netcom.com> posted a
  8. ! few months ago:
  9. !
  10. ! InterSLIP gateway script for the ITG annex
  11. !
  12. @originate
  13. pause 60
  14. note "Waiting for prompt"
  15. write "\13"
  16. matchclr
  17. matchstr 1 1 "Annex username: "
  18. matchread 120
  19. note "Gateway not responding!"
  20. jump 99
  21. !
  22. @label 1
  23. note "Sending user name"
  24. write "^5\13"
  25. matchclr
  26. matchstr 1 2 "Annex password:"
  27. matchread 120
  28. note "Gateway not responding!"
  29. exit -1
  30. !
  31. @label 2
  32. note "Sending password"
  33. write "^6\13"
  34. matchclr
  35. matchstr 1 4 "ITG>"
  36. matchstr 2 3 "Username/Password Incorrect"
  37. matchread 120
  38. jump 99
  39. !
  40. @label 3
  41. note "Username/Password Incorrect"
  42. jump 99
  43. !
  44. @label 99
  45. pause 1
  46. sound
  47. pause 60
  48. exit -1
  49. !
  50. @label 4
  51. note "Requesting SLIP"
  52. write "slip\13"
  53. matchclr
  54. matchstr 1 5 "Switching to SLIP"
  55. matchread 120
  56. note "Cannot switch to SLIP mode"
  57. jump 99
  58. !
  59. @label 5
  60. matchclr
  61. matchexp 1 6 "Annex address is
  62. [0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*\\."
  63. matchread 120
  64. note "Gatway IP address not given"
  65. jump 99
  66. !
  67. @label 6
  68. matchclr
  69. matchexp 1 7 "[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*\\."
  70. matchread 120
  71. note "Your IP address not given"
  72. jump 99
  73. !
  74. @label 7
  75. note "Connected to ITG network. (^0)"
  76. setip "^0"
  77. setmtu "^9"
  78. pause 60
  79. exit 0
  80. !
  81. ! currently unused:
  82. !
  83. @answer
  84. @hangup
  85. exit 0